<template>
  <div id="Pie">
    <span
        style="
    align-items: center;
    justify-content: space-around;
    flex-direction: column;
    font-size: 20px"
    >人员配置</span>
    <el-icon size="25px" @click="toThird">
      <Setting/>
    </el-icon>
  </div>
  <div class="mainbody">
    <div id="ThirdPie" style="height: 250px;width: 100%;flex: 1">

    </div>
  </div>
</template>

<script lang="ts" setup>
import * as echarts from 'echarts'
import {onMounted} from 'vue'
import {useProjectProgessStore} from '@/stores/ProjectProgress'
import router from '@/router'

const ProjectProgessStore = useProjectProgessStore()

const toThird = () => {
  router.push('/home/programmanagement/newconfig/3')
}

onMounted(() => {
  ProjectProgessStore.countPieValue()
  const option = {
    series: ProjectProgessStore.series[2]
  }
  const myChart = echarts.init(document.getElementById('ThirdPie'))
  myChart.setOption(option)
})

</script>

<style scoped>

</style>
